module App::View
    class ScreenSaverDeactivated < Qt::MessageBox
        def initialize(parent, idle_from)
            super(parent)
            setText "You've been idle for %ds" % [Time.now - idle_from.to_time]
            setInformativeText "Should I restart last task?"
            setStandardButtons(Qt::MessageBox::Ok | Qt::MessageBox::Discard)
            setDefaultButton Ok
        end
    end
end
